package com.imooc.imoocbilibili.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

/**
 * 用户关注表
 * 
 * @author jl
 * @since 2022-04-10 19:24:02
 */
@Data
@TableName("t_user_following")
public class UserFollowing implements Serializable {
	private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 用户id
     */

    @JsonSerialize(using= ToStringSerializer.class)
    private Long userid;
    /**
     * 关注用户id
     */

    @JsonSerialize(using= ToStringSerializer.class)
    private Long followingid;
    /**
     * 关注分组id
     */
    private Long groupid;
    /**
     * 创建时间
     */
    private Date createtime;

    /**
     * 是否互粉
     */
    @TableField(exist = false)
    private boolean followed;

}
